package graduation.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="files")
public class Files {

	private String id;
	private Integer type;//（1-图片，2-文档，3-视频）
	private String fileName;//文件类型
	private Date uploadDate;//上传时间
	private String fileUrl;//文件路径
	
	@Id
	@Column(name = "id", nullable = false, unique = true)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	
	public Date getUploadDate() {
		return uploadDate;
	}
	public void setUploadDate(Date uploadDate) {
		this.uploadDate = uploadDate;
	}
	public String getFileUrl() {
		return fileUrl;
	}
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	@Override
	public String toString() {
		return "Files [id=" + id + ", type=" + type + ", fileName=" + fileName + ", uploadDate=" + uploadDate
				+ ", fileUrl=" + fileUrl + "]";
	}

	
}
